]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionSystem: Add missing return value
authorFlorian Müllner <fmuellner@gnome.org>
Thu, 12 Sep 2019 10:40:46 +0000 (12:40 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 12 Sep 2019 10:45:05 +0000 (12:45 +0200)
_callExtensionInit() should return whether the extension was initialized
successfully or not, but the early return added in commit 2a9e065cfb
doesn't.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/715

js/ui/extensionSystem.js

index 7fe275ec7b3c7b51a06e41812cf90f113bb70da8..e8f20794374198446c84f3a9ab927243c8f4290e 100644 (file)
@@ -305,7 +305,7 @@ var ExtensionManager = class {
 
     _callExtensionInit(uuid) {
         if (!Main.sessionMode.allowExtensions)
-            return;
+            return false;
 
         let extension = this.lookup(uuid);
         if (!extension)